home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK2.toast / Development Kits (Disc 2) / Thread Manager / Sample Applications / Power Examples / NativeThreadTestApp / NativeThreadTestApp.make < prev    next >
Encoding:
Text File  |  1994-11-17  |  1.7 KB  |  73 lines  |  [TEXT/MPS ]

  1. #
  2. #
  3. #    File:        NativeThreadTestApp.make
  4. #
  5. #    Contains:    Makefile for NativeThreadTestApp
  6. #
  7. #    Written by:    Brad Post
  8. #
  9. #    Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  10. #
  11. #    Change History (most recent first):
  12. #
  13. #         <2>     9/14/93    bsp        Added stuff for PPC compiler
  14. #         <1>     8/13/93    bsp        first checked in
  15. #
  16.  
  17. SourceDir    =    :Source:
  18.  
  19. ObjectDir    =    :Obj:
  20.  
  21. App            =    NativeThreadTestApp
  22.  
  23. # optional resource file
  24.  
  25. RsrcFile    =    {SourceDir}{App}.r
  26.  
  27. NativeObjs =    {ObjectDir}NativeThreadTestApp.o  
  28.                 
  29. # these paths are relative.  replace with path to your libraries
  30.  
  31. NativeLibs    =         "{PPCLibraries}"InterfaceLib.xcoff             ∂
  32.                     "{PPCLibraries}"ThreadsLib.xcoff        ∂
  33.                     "{PPCLibraries}"StdCLib.xcoff                
  34.  
  35. # these paths are relative.  replace with path to your headers
  36.  
  37. NativeCOpts    =     -align mac68k -appleext on -char signed -d powerc=1 -w off -d timeit
  38.  
  39. NativeLinkOpts = -main main
  40.  
  41. PowerC        =    PPCC {NativeCOpts}
  42.  
  43. {ObjectDir}    ƒ {SourceDir} {ObjectDir}
  44.  
  45. {App} ƒƒ {App}.Native
  46.  
  47. #___________________________________________________________________________________________________
  48. # main build rule
  49.  
  50. All ƒ    NativeThreadTestApp
  51.     BuiltAll NativeThreadTestApp
  52.  
  53.  
  54. #
  55. # Rules for any PPC file
  56. #
  57. .o    ƒ .c
  58.     echo "Compiling PPC {Default}.c…"
  59.     {PowerC}  -o {TargDir}{Default}.o {DepDir}{Default}.c
  60.  
  61.  
  62. {App}.Native    ƒƒ {NativeObjs} NativeThreadTestApp.make
  63.         PPCLink        {NativeLinkOpts}                            ∂
  64.                     {NativeLibs}                                ∂
  65.                     {NativeObjs}                                ∂
  66.                      -o {App}.xcoff                                        
  67.         makepef    {App}.xcoff -o {App} ∂
  68.                     -l "InterfaceLib.xcoff=InterfaceLib"        ∂
  69.                     -l "ThreadsLib.xcoff=ThreadsLib"    ∂
  70.                     -l "StdCLib.xcoff=StdCLib"                    
  71.         echo "include ∂"{RsrcFile}∂";" | rez -a {RsrcFile} -o {App}        
  72.         SetFile {App} -t 'APPL' -c 'hack'
  73.